<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/public/header.jsp"%>
<%
    String callback = request.getParameter("callback");
	String isShow = request.getParameter("isShow") == null ? "" : request.getParameter("isShow");
	String id = request.getParameter("id") == null ? "" : request.getParameter("id");
%>
<html>
	<head>
		<title>查看收款详情</title>
		<script type="text/javascript" src="<%=contextPath %>/public/js/extend.js"></script>
		<style>
			.td1{
				padding-top:10px;
				padding-bottom:5px;
				font-size: 12px;
				background-color: #c0ebd7;
				width:20%;
			}
			.td2{
				padding:5px;
			}
		</style>
	<script type="text/javascript">
		$(function(){

				$('#ff').form('load','<%=contextPath %>/springMVC/xmFinance/getInMoneyById?id=<%=id%>');
		});
		
		
		function choseInvoice(){
		    	openDialogResize("<%=contextPath %>/springViews/xm/choseMyInvoice.jsp",1000, 800);
		    	
		}
		function rtCallBackXmInvoiceSet(invoice_id,xm_id,xm_code,xm_name,account_receivable,has_receivable,invoice_title){
			jQuery("#invoice_id").val(invoice_id);
			jQuery("#xm_id").val(xm_id);
		    jQuery("#xm_name").val(xm_name);
		    jQuery("#xm_code").val(xm_code);
		    jQuery("#account_receivable").val(account_receivable);
		    jQuery("#has_receivable").val(has_receivable);
		    jQuery("#invoice_title").val(invoice_title);
		}
	</script>
	</head>
	<body>
		<div style="width: 97%;padding-left:10px">
		<form id="ff">
			<table  style="border-collapse: collapse;" width="100%" border="1px" bordercolor="#0eb83a">
				<tr>
					<td align="right" class="td1" nowrap>项目编号：</td>
					<td class="td2" nowrap>
						<input  id="xm_code" name="xm_code" readOnly>
						<input type="hidden" id="invoice_id" name="invoice_id" readOnly >
						<input type="hidden" id="xm_id" name="xm_id" readOnly>
					</td>
					<td align="right" class="td1" nowrap>项目名称：</td>
					<td class="td2" nowrap>
						<input  id="xm_name" name="xm_name" readOnly>
					</td>
				</tr>

				<tr>	
					<td align="right" class="td1" nowrap>经办人：</td>
					<td class="td2" nowrap>
						<input  id="creator" name="creator" readOnly>
					</td>
					<td align="right" class="td1" nowrap>发票抬头：</td>
					<td class="td2">
						<input  id="invoice_title" name="invoice_title" readOnly>
					</td>
				</tr>
				<tr>	
					<td align="right" class="td1" nowrap>已开票金额：</td>
					<td class="td2" nowrap>
						<input  id="account_receivable" name="account_receivable" readOnly>
					</td>
					<td align="right" class="td1" nowrap>已收款金额：</td>
					<td class="td2">
						<input  id="has_receivable" name="has_receivable" readOnly>
					</td>
				</tr>
				<tr>
			        <td align="right" class="td1" nowrap>收款金额：</td>
					<td class="td2" >
					<input  id="in_money" name="in_money"  class="easyui-numberbox" data-options="min:0,precision:2" value="0">
					</td>
					<td align="right" class="td1" nowrap>管理费用：</td>
					<td class="td2"  >
						<input  id="manage_money" name="manage_money"  class="easyui-numberbox" data-options="min:0,precision:2" value="0">
					
					</td>
				</tr>
				
				<tr>
					<td align="right" class="td1" nowrap>摘要：</td>
					<td class="td2" nowrap colspan='3'>
						<textarea  id="remark" name="remark" rows="6" style="width: 100%"></textarea>
					</td>
				</tr>
				<tr>
					<td align="right" class="td1" nowrap></td>
					<td class="td2" nowrap colspan='3'>
						<div align="left">
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:false" onclick="javascript:window.close();">关闭</a>
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="4"  nowrap>
						<div id="table"></div>
					</td>
				</tr>
			</table>
			</form>
		</div>
		
	</body>
</html>